package com.example.group_20.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.group_20.entity.Rate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: 栋
 * @data: 2023/8/19
 * @descriptions:
 */
@Mapper
public interface RateMapper extends BaseMapper<Rate> {
    @Select("select * from rate where id = #{id}")
    public Rate findById(int id);
    @Select("select * from rate")
    public List<Rate> findAll();
}
